---@class RedRob.AttackState : RedRob.StateBase
local AttackState = RedRob.CreateClass("AttackState","StateBase")

function AttackState:Init()
end
function AttackState:OnEnter()

end
function AttackState:OnExit()

end
function AttackState:Update(dt)
    self:PlayAction(self.data.animName,true)
    if self.actor:GetAnimation() then
        self.actor:SetAnimEventData(self.data.skillId)
    end
end